package com.yaoxun.quartz.domain.entity;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;

/**
 * 定时任务实体
 * @author Loren
 *
 */
@Data
public class ScheduleJob implements Serializable {

	private static final long serialVersionUID = 1L;

	public static final int JOB_STATUS_START = 0;
	
	public static final int JOB_STATUS_STOP = 1;
	
	public static final String PARAMS_NAME = "params";
	
	/**
	 * 主键ID
	 */
	private Long jobId;
	
	/**
	 * bean的名称
	 */
	private String beanName;
	
	/**
	 * 参数
	 */
	private String params;
	
	/**
	 * Cron表达式
	 */
	private String cronExpression;
	
	/**
	 * 任务状态  0：正常  1：暂停
	 */
	private Integer jobStatus;
	
	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建时间
	 */
	private Date createTime;
	
}
